// 组织架构相关的 API
import request from '@/utils/request.js'

// 查询企业的部门列表 API
export const getDepartListAPI = () => request.get('/company/department')

// 新增部门 API
export const addDepartAPI = (obj) => request.post('/company/department', obj)

// 根据ID查询部门详情 API
export const getDepartAPI = (id) => request.get(`/company/department/${id}`)

// 根据ID修改部门详情 API
export const updateDepartAPI = (obj) => request.put(`/company/department/${obj.id}`, obj)

// 根据ID删除部门 API
export const delDepartAPI = (id) => request.delete(`/company/department/${id}`)
